.homeDetail {
  @include flexbox();
  @include flex-direction(column);
  height: 100%;
  z-index: 1;

  header {
    position: relative;

    &>i {
      position: absolute;
      left: 15px;
      top: 15px;
      width: 30px;
      height: 30px;
      background: url(image/icon_retern0.png) no-repeat center;
      background-size: 100%;
      z-index: 2;
    }

    &>span {
      position: absolute;
      right: 15px;
      top: 15px;
      width: 30px;
      height: 30px;
      background: url(image/icon_share.png) no-repeat center;
      background-size: 100%;
      z-index: 2;
    }

    &>a {
      position: absolute;
      right: 15px;
      top: 15px;
      width: 30px;
      height: 30px;
      background: rgba(0, 0, 0, .4) url(image/edit.png) no-repeat center;
      background-size: 18px;
      border-radius: 50%;
      z-index: 2;
    }

    div.vdo {
      position: relative;
      width: 100%;
      height: 260px;
      background: rgba(0, 0, 0, 1);

      video {
        width: 100%;
        height: 100%;
      }

      .controls {
        @include flexbox();
        width: 100%;
        position: absolute;
        left: 0;
        bottom: 0;
        height: 40px;
        background: #000;
        opacity: .8;
        padding: 0 10px;

        img {
          margin: auto 0;
        }

        .progress {
          @include flex();
          @include flexbox();
          height: 10px;
          // background: rgba(255,255,255,.6);
          margin: auto 10px;
          position: relative;

          .range {
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 0;
            height: 1px;
            background-color: #1cc64c;

          }

          input[type="range"] {
            background-color: #fff;
            border-radius: 15px;
            -webkit-appearance: none;
            height: 1px;
            margin: auto;

          }

          input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            cursor: default;
            top: -5px;
            height: 16px;
            width: 16px;
            background-color: #1cc64c;
            // background: hsl(217, 100%, 50%);
            border-radius: 50%;
          }

          .rangeInput {
            width: 100%;
          }


        }

        .time {
          color: #fff;
          margin: auto 10px auto 0;
          font-size: 12px;

        }

      }

    }

  }

  .box {
    @include flex();
    width: 100%;
    overflow-y: scroll;

  }

  div.title {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 10px;
    background: #F6F6F6;

    div {
      span {
        font-size: 10px;
        // font-weight: normal;
        color: rgba(0, 0, 0, 0.2);
      }

      h3 {
        font-size: 15px;
        color:rgba($color: #000000, $alpha: 0.8);

        i {
          @include flex();
          overflow: hidden;
          white-space: nowrap;
          text-overflow: ellipsis;
        }

      }

      &>p {
        font-size: 12px;
        color: rgba(229, 50, 45, 1);
        background: url(image/icon_yuan.png) no-repeat left center;
        background-size: 12px;

        b {
          font-size: 17px;
          margin-left: 15px;
          margin-right: 15px;
        }

        i {
          color: rgba(156, 156, 156, 1);
          text-decoration: line-through;
        }

      }

      &>a {
        position: absolute;
        width: 60px;
        height: 24px;
        text-align: center;
        border-radius: 15px;
        line-height: 24px;
        border: 1px solid rgba(229, 50, 45, 1);
        color: rgba(229, 50, 45, 1);
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
      }

    }

    .price {
      display: flex;
      flex-direction: column;

      img {
        width: 0.31rem;
        position: absolute;
        right: 0.10rem;
        bottom: 0.1rem;
      }

      b {
        font-size: 0.18rem;
        color: #51362a;
        text-align: right;
      }
    }
  }

  .border-8 {
    width: 100%;
    height: 8px;
    background: #F6F6F6;
  }

  .border-5 {
    width: 100%;
    height: 5px;
    background: #F6F6F6;
  }

  .nav {
    @include flexbox();
    width: 3rem;
    background: #f5f3f3;
    height: 0.4rem;
    // margin: 0rem 0.3rem;
    margin: 0.08rem auto;
    border-radius: 20px;
    align-items: center;

    div {
      @include flex();
      text-align: center;

      a {
        width: 0.81rem;
        height: 0.3rem;
        line-height: 0.3rem;
        display: inline-block;
        border-radius: 20px;
        color: #198970;
        background: #fff;
        font-size: 13px;

        b {
          font-weight: normal;
        }
      }

      &.active a {
        color: #fff;
        background: #5eb497
      }
    }
  }

  .swipe {
    width: 100%;
    height: auto;

    // .swiper-slide{height:0px}
    .swiper-slide-active {
      height: auto
    }

    .courseIntroduction {
      height: auto;
      z-index: 1;
      padding-bottom: 50px;

      h3 {
        font-size: 16px;
        color: rgb(51, 51, 51);
        height: 48px;
        line-height: 48px;
        border-bottom: 1px dotted rgb(225, 225, 225);
        margin: 0 10px;
        img {
          display: inline-block;
          margin-right: 0.1rem;
          width: 0.09rem;
          height: 0.09rem;
        }
      }

      .teacherDetail {
        @include flexbox();
        border-bottom: 1px solid rgba(223, 223, 223, 1);

        &>img {
          border-radius: 50%;
          margin:10px;
          width: 34px !important;
          height: 34px !important;
        }

        div {
          @include flex();
          margin: 10px;
          text-align: justify;
          span {
            // display: inline-block;
            // margin-top: 10px;
            font-size: 15px;
            color: rgba(51, 51, 51, 1);
          }

          p {
            font-size: 13px;
            color: rgba(156, 156, 156, 1);
            padding-right: 10px;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
          }
        }

        a.focus {
          img {
            width: 0.75rem;
            height: 0.33rem;
            position: absolute;
            top: 0.06rem;
            right: 0.1rem;

          }
        }
      }

      .typenum {
        height: 45px;
        @include flexbox();
        line-height: 1;

        div {
          @include flex();
          text-align: center;
          font-size: 14px;
          color: rgba(51, 51, 51, 1);
          position: relative;

          p {
            margin-top: 7px;
            margin-bottom: 4px;
          }

          i {
            font-size: 12px;
            color: rgba(156, 156, 156, 1);
          }

          &:nth-of-type(2) {
            &:before {
              content: '';
              position: absolute;
              left: 0;
              top: 50%;
              transform: translateY(-50%);
              width: 1px;
              height: 19px;
              background: rgba(229, 229, 229, 1);
            }
          }

          &:nth-of-type(3) {
            &:before {
              content: '';
              position: absolute;
              left: 0;
              top: 50%;
              transform: translateY(-50%);
              width: 1px;
              height: 19px;
              background: rgba(229, 229, 229, 1);
            }
          }
        }
      }

      .content {
        width: 100%;
        height: 70px;
        padding: 0 10px;
        margin: 15px 0;
        font-size: 15px;
        color: rgb(126, 126, 126);
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
      }

      .btn {
        @include flexbox();
        position: absolute;
        z-index: 2;
        background: #fafafa;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 50px;

        a {
          background: #4a3528;
          width: 1.15rem;
          height: 0.31rem;
          line-height: 0.31rem;
          color: #fff;
          margin-top: 0.1rem;
          text-align: center;
          border-radius: 0.15rem;
          position: absolute;
          right: 2%;
        //   &.add {
        //     color: #fff;
        //     background: rgba(229, 50, 45, 1);
        //   }
        }
      }
    }

    .videoPlayback {
      ul {
        li {
          &.active {
            background: rgba(253, 238, 237, 1);

            a {
              &>p {
                background: url(image/icon_video_quantity_click.png) no-repeat center;
                background-size: 16px;
              }

              div {
                h3 {
                  color: rgba(229, 50, 45, 1) !important;
                }
              }
            }
          }

          &>div {
            @include flexbox();
            // @include justify-content(center);
            @include align-content(center);
            margin: 0 15px;
            height: 60px;
            border-bottom: 1px solid rgb(229, 229, 229);

            a {
              @include flex();
              @include flexbox();

              &>p {
                @include flexbox();
                margin-left: 5px;
                margin-right: 10px;
                width: 16px;
                background: url(image/icon_video_quantity_normal.png) no-repeat center;
                background-size: 16px;
              }

              div {
                @include flex();
                padding-right: 10px;

                h3 {
                  font-size: 15px;
                  color: rgb(51, 51, 51);
                  font-weight: normal;
                  height: 100%;
                  line-height: 59px;
                  overflow: hidden;
                  white-space: nowrap;
                  text-overflow: ellipsis;
                }
              }
            }

            &>div {
              @include flexbox();
              font-size: 9px;
              width: 25px !important;
              height: 100%;
              color: rgba(229, 50, 45, 1);

              img {
                width: 25px !important;
                height: 25px !important;
                margin: auto;
              }

            }
          }

        }
      }
    }

    .liveClass {
      padding-bottom: 50px;

      ul {
        li {
          @include flexbox();
          margin: 0 15px;
          padding: 10px 0;
          height: 60px;
          border-bottom: 1px solid rgb(229, 229, 229);

          a {
            @include flex();
            @include flexbox();

            &>p {
              margin-top: 5px;
              margin-left: 5px;
              margin-right: 10px;
              text-align: center;

              img {
                width: 16px !important;
                height: 16px !important;
              }
            }

            div {
              @include flex();

              h3 {
                font-size: 15px;
                color: rgb(51, 51, 51);
                font-weight: normal;
                position: relative;
                overflow: hidden;
                white-space: nowrap;
                text-overflow: ellipsis;
                padding-right: 40px;

                i {
                  position: absolute;
                  right: 16px;
                  top: 50%;
                  transform: translateY(-50%);
                  background: rgba(229, 50, 45, 1);
                  width: 39px;
                  height: 16px;
                  line-height: 16px;
                  font-size: 10px;
                  text-align: center;
                  color: #fff;
                  border-radius: 8px;
                }
              }

              &>p {
                @include flexbox();
                @include align-content(center);

                b,
                time {
                  font-size: 12px;
                  color: rgba(156, 156, 156, 1);
                  margin-right: 20px;
                  font-weight: normal;
                }
              }
            }
          }

          &.active {
            a {
              div {
                h3 {
                  color: rgba(229, 50, 45, 1) !important;
                }

                p {

                  b,
                  time {
                    color: rgba(229, 50, 45, 1) !important;
                  }
                }
              }

            }
          }
        }
      }

      &>.buyBtn {
        position: absolute;
        left: 0;
        bottom: 0;
        background: rgba(229, 50, 45, 1);
        width: 100%;
        height: 50px;
        line-height: 50px;
        font-size: 17px;
        text-align: center;
        color: #fff;
      }

      .join {
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 50px;
        background: #fff;
        @include flexbox();
        border-top: 1px solid rgba(223, 223, 223, 1);

        a {
          display: block;
          margin: auto;
          background: rgba(229, 50, 45, 1);
          width: 194px;
          height: 35px;
          line-height: 35px;
          font-size: 17px;
          text-align: center;
          border-radius: 20px;
          color: #fff;
        }
      }

    }
  }

  .mc {
    position: absolute;
    background: rgba(0, 0, 0, .42);
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 3;

    &>div {
      @include flexbox();
      @include flex-direction(column);
      position: absolute;
      left: 0;
      bottom: 0;
      width: 100%;
      height: 160px;
      background: #fff;
      padding-top: 17px;

      h3 {
        width: 115px;
        margin: 0 auto;
        font-size: 14px;
        position: relative;
        color: rgba(156, 156, 156, .6);
        font-weight: normal;
        text-align: center;
        height: 20px;

        &:before {
          content: '';
          position: absolute;
          left: -110px;
          top: 50%;
          width: 100px;
          height: 1px;
          background: rgba(229, 229, 229, 1);
          background: -webkit-linear-gradient(left, #fff, rgba(229, 229, 229, 1));
          background: -o-linear-gradient(right, #fff, rgba(229, 229, 229, 1));
          background: -moz-linear-gradient(right, #fff, rgba(229, 229, 229, 1));
          background: linear-gradient(to right, #fff, rgba(229, 229, 229, 1));
        }

        &:after {
          content: '';
          position: absolute;
          left: 125px;
          top: 50%;
          width: 100px;
          height: 1px;
          background: rgba(229, 229, 229, 1);
          background: -webkit-linear-gradient(left, rgba(229, 229, 229, 1), #fff);
          background: -o-linear-gradient(right, rgba(229, 229, 229, 1), #fff);
          background: -moz-linear-gradient(right, rgba(229, 229, 229, 1), #fff);
          background: linear-gradient(to right, rgba(229, 229, 229, 1), #fff);
        }
      }

      div {
        @include flex();
        @include flexbox();
        width: 100%;

        a {
          @include flex();
          @include flexbox();
          text-align: center;

          img {
            margin: auto;
          }
        }
      }

      .cancel {
        display: block;
        height: 50px;
        line-height: 49px;
        text-align: center;
        font-size: 17px;
        color: rgba(51, 51, 51, 1);
        border-top: 1px solid rgba(229, 229, 229, 1);
      }
    }
  }

  .mcComment {
    position: absolute;
    background: rgba(0, 0, 0, .42);
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 3;

    .bottom {
      width: 100%;
      background: #fff;
      position: fixed;
      bottom: 0;
      z-index: 2;
      height: auto;
      padding-top: 10px;
      border-top: 1px solid rgba(223, 223, 223, 1);

      div.gradebox {
        @include flexbox();
        @include justify-content(space-between);
        padding: 0 10px 0 15px;
        height: 40px;
        line-height: 40px;
        font-size: 14px;
        color: rgba(51, 51, 51, 1);

        &>span {}

        .el-rate {
          margin: auto 0;
        }
      }

      div.input {
        width: 100%;
        background: #fff;
        height: auto;
        padding: 10px 17px 20px 15px;
        @include flexbox();

        img {
          margin-top: auto;
          margin-bottom: auto;
          margin-right: 20px;
        }

        input {
          @include flex();
          height: 30px;
          margin: auto 0;
          color: rgba(51, 51, 51, 1);
          font-size: 15px;
          border: 1px solid rgba(223, 223, 223, 1);
          border-radius: 6px;
          padding-left: 10px;
        }
      }

      ::-webkit-input-placeholder {
        /* WebKit browsers */
        color: rgba(156, 156, 156, 1);
        font-size: 15px;
      }

      :-moz-placeholder {
        /* Mozilla Firefox 4 to 18 */
        color: rgba(156, 156, 156, 1);
        font-size: 15px;
      }

      ::-moz-placeholder {
        /* Mozilla Firefox 19+ */
        color: rgba(156, 156, 156, 1);
        font-size: 15px;
      }

      :-ms-input-placeholder {
        /* Internet Explorer 10+ */
        color: rgba(156, 156, 156, 1);
        font-size: 15px;
      }

      a.send {
        display: block;
        height: 50px;
        line-height: 49px;
        text-align: center;
        font-size: 17px;
        color: rgba(51, 51, 51, 1);
        border-top: 1px solid rgba(229, 229, 229, 1);
      }
    }
  }

  .mc2 {
    position: absolute;
    background: rgba(0, 0, 0, .5);
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 3;

    div {
      position: absolute;
      width: 100%;
      height: 145px;
      left: 50%;
      bottom: 0px;
      transform: translateX(-50%);
    }

    a {
      position: absolute;
      left: 50%;
      bottom: 105px;
      transform: translateX(-50%);
      width: 254px;
      height: 40px;
      line-height: 40px;
      text-align: center;
      font-size: 17px;
      background: rgba(229, 50, 45, 1);
      color: #fff;
      border-radius: 20px;
    }

    .cancel {
      color: rgba(51, 51, 51, 1);
      background: #fff;
      color: rgba(229, 50, 45, 1);
      bottom: 45px;
    }
  }

  .btnBox {
    @include flexbox();
    position: fixed;
    width: 100%;
    height: 50px;
    line-height: 50px;
    left: 0;
    bottom: 0;
    z-index: 44;
    background: rgba(229, 50, 45, 1);

    a {
      @include flex();
      text-align: center;
      color: #fff;

      &:first-child {
        border-right: 1px solid #fff;
      }
    }
  }

  .createBtn {
    @include flexbox();
    height: 65px;
    background: rgba(246, 246, 246, 1);

    a {
      display: block;
      width: 270px;
      height: 35px;
      text-align: center;
      line-height: 35px;
      margin: auto;
      border-radius: 18px;
      background: rgba(229, 50, 45, 1);
      color: #fff;
    }
  }

  ul.commentList {
    @include flex();
    width: 100%;
    padding: 0 15px;
    overflow-y: scroll;

    li {
      font-size: 15px;
      border-bottom: 1px solid #e5e5e5;

      .name {
        @include flexbox();
        padding-top: 16px;
        color: rgb(156, 156, 156);

        h4 {
          font-weight: normal;
          margin-right: 32px;
        }
      }

      p.content {
        padding-top: 5px;
        color: rgb(51, 51, 51);
        padding-bottom: 15px;
      }
    }
  }
}
